export default {
  namespaced: true,
  state: {
    category: {
      download: '我的下载',
      apply: '我的申请',
      message: '我的消息',
    },
    sections: [{
        category: 'download',
        moreLink: '/personal/download'
      },
      {
        category: 'apply',
        moreLink: '/personal/apply'
      },
      {
        category: 'message',
        moreLink: '/personal/message'
      }
    ]
  },
  getters: {
    sections(state, getters) {
      return state.sections.map(function (element) {
        element.title = state.category[element.category];
        return element;
      }, this);
    }
  },
  mutations: {}
}
